from django.db import models

from apps.detail.models import DetailModel


class CollectionModel(models.Model):
    detail = models.ForeignKey(DetailModel, related_name='detail', verbose_name='收藏的哪个菜品')

    class Meta:
        db_table = 'tb_collection'
        verbose_name = '收藏的菜品'
        verbose_name_plural = verbose_name
